/**
 * 
 */
package demo.tellurium.test;

import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import demo.tellurium.framework.BaseTelluriumJUnitTestCase;
import demo.tellurium.module.BaiduSearchModule;

/**
 * @author roger.xu
 * 
 */
public class BaiduSearchJUnitTestCase extends BaseTelluriumJUnitTestCase {

    private static BaiduSearchModule bdm;

    @BeforeClass
    public static void initUi() {
        bdm = new BaiduSearchModule();
        bdm.defineUi();
    }

    @Before
    public void connectTo() {
        connectUrl("http://www.baidu.com");
    }

    @Test
    public void testInputKeyword() {
        console.debug("[testInputKeyword]");
        bdm.doSearch("roger xu");
    }
}
